package com.patents.dao;

import com.patents.pojo.Patents;
import com.patents.pojo.Users;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface PatentsMapper {
    //增加一个Patents
    int addPatents(Patents patents);

    //根据id删除一个Patents
    int deletePatentsById(int id);

    //更新Patents
    int updatePatents(Patents patents);

    //根据id查询,返回一个Patents
    Patents queryPatentsById(int id);

    //根据申请人查询
    Patents queryPatentsByPatenter(String patenter);

    //查询全部Patents,返回list集合
    List<Patents> queryAllPatents();

    public List<Patents> getPatentByUser(@Param("patenter") String patenter);

    public Patents getUpdatePatent(int id);

    public int editPatent(Patents patents);
    public int zhuanRangPatent(Patents patents);

    public List<Patents> getPatentByName(@Param("patentname") String patentname);

    public List<Patents> getPatentCheckByUser(@Param("patenter") String patenter);

}
